package com.nation.dao;

import com.nation.domain.TCountry;
import com.nation.domain.TNationInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/2.
 */
@Repository
public interface NationInfoDao {
    public List<TNationInfo> findAllNationInfo();

    public TNationInfo findByCountryCode(String country_code);

    public Boolean updateNationInfo(TNationInfo nationInfo);

    public List<TNationInfo> findByCondition(Map<String,Object> map);


    public void uploadNationMessage(TNationInfo nationInfo);

    public void upload_flag_ZIP(String picture_path,String input_code,String nation_z,String input_time);

    public List<TNationInfo> findNationInfoByLimit(Map<String,Object> map);

    public void uploadNationFile_Map_picture(TNationInfo nationInfo);

    public void uploadNationFile_Nation_emblem(TNationInfo nationInfo);

    public void uploadNationFile_Nation_flag(TNationInfo nationInfo);

    public void uploadNationFile_Nation_song(TNationInfo nationInfo);

    public TCountry findCountryByName(String name);

    public Boolean insertNationInfo(TNationInfo nationInfo);

    //    通过中文名字查询国家代码
    public String getCountryCodeByNation_z(String nation_z);

    public Boolean delete(String pk);
}
